﻿<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<MiserBlogData.Entities.Discussion>" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Create</title>
    <link href="/Content/Site.css" rel="stylesheet" type="text/css" />
    <script src="/Scripts/kindeditor.js" type="text/javascript"></script>
    <script src="/Scripts/editer.js" type="text/javascript"></script>
    <script type="text/javascript">
        editerShow('txtContent');
    </script>
</head>
<body>
    <div>
    <%using (Html.BeginForm("Create", "Discussion", FormMethod.Post))
      { %>
        <div>
            <span style=" width:50px; display:inline-block; width:50px"><%=Html.Label("标题：")%></span>
            <span><%=Html.TextBoxFor(model => model.Title, new { @id = "articleTitle", @class = "txtEditerTitle" })%></span>
        </div>
        <div style="margin-top:20px">
            <%=Html.TextAreaFor(model => model.Content, new { @id = "txtContent", @class = "txtEditerContent" })%>
        </div>
        <div style="margin-top:20px">
            <%=Html.RadioButtonFor(model => model.State, 0, new { @name = "state", @id = "startState" })%>
            <label for="startState">开启</label>
            <%=Html.RadioButtonFor(model => model.State, 3, new { @name = "state", @id = "ineffectState" })%>
            <label for="ineffectState">草稿</label>
        </div>
        <div style="margin-top:20px">
            <input type="submit" value="提交" />
        </div>
        <%=Html.HiddenFor(model => model.CDate) %>
    <%} %>
    </div>
</body>
</html>
